package mvp.com.bbc.rcjavaretrofitdaggermvp.mvp.activity;

import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.ScalePopUpWindow;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.Util;
import mvp.com.bbc.rcjavaretrofitdaggermvp.baseAF.BaseViewPagerActivity;
import mvp.com.bbc.viewpagerlayoutmanager.ScaleLayoutManager;

/**
 * Created by ${cbf} on 2017/11/29.
 */

public class ScaleLayoutActivity extends BaseViewPagerActivity<ScaleLayoutManager,ScalePopUpWindow> {
    @Override
    protected ScaleLayoutManager createLayoutManager() {
        //  Caused by: java.lang.IllegalArgumentException: invalid orientation:8
        return new ScaleLayoutManager(Util.Dp2px(this, 10),0,true);
    }

    @Override
    protected ScalePopUpWindow createSettingPopUpWindow() {
        return new ScalePopUpWindow(this, getViewPagerLayoutManager(), getRecyclerView());
    }
}
